package com.ruoyi.service;

import cn.hutool.json.JSONUtil;
import com.ruoyi.model.bs.BsUploadDataReq;
import org.springframework.stereotype.Service;

/**
 * 上传文件接口-区平台
 */
@Service
public class BsUploadService {

    public static void main(String[] args) {
        String json = "{\"dataCount\":1,\"dataContent\":[{\"OBU_ID\":\"\",\"OBU_VEHICLE_NO\":\"\",\"OBU_VEHICLE_LENGTH\":0,\"IS_ACROSS\":\"0\",\"CHECK_TIME\":1709288661778,\"BU_SBM\":\"\",\"OBU_VEHICLE_CUSTOM_TYPE\":0,\"UNLOAD_WEIGHT\":0,\"SPEED\":42,\"VEHICLE_ALXES_TYPE\":\"\",\"OBU_VEHICLE_HEIGHT\":0,\"WEIGHT2\":800,\"WEIGHT3\":0,\"WEIGHT1\":950,\"WEIGHT6\":0,\"OBU_TOTAL_MASS\":0,\"WEIGHT7\":0,\"WEIGHT4\":0,\"WEIGHT5\":0,\"TOTAL_LENGTH\":0,\"XSFX\":\"足荣往德保\",\"OBU_VEHICLE_WIDTH\":0,\"IS_REVERSE\":\"0\",\"OBU_VEHICLE_COLOR\":\"\",\"OBU_TZMS\":\"\",\"CHECK_NO\":\"dbzr06096117726\",\"IS_BULK_VEHICLE\":\"00\",\"OBU_PERMITTED_WEIGHT\":0,\"OBU_MAINTENANCE_MASS\":0,\"PLATE_COLOR\":\"0\",\"OBU_CC\":\"\",\"TOTAL_HEIGHT\":0,\"OVER_LENGTH\":0,\"LIMIT_WEIGHT\":10000,\"AXLES\":2,\"TOTAL\":1750,\"SITE_ID\":\"45102431001\",\"OVER_WIDTH\":0,\"OVER_WEIGHT\":0,\"VEHICLE_NO\":\"桂LZL385\",\"EQUIP_ID\":\"1\",\"VEHICLE_TYPE\":\"SUV\",\"OLD_CHECK_NO\":\"\",\"OBU_VEHICLE_TYPE\":\"\",\"OVER_RATE\":0.0,\"CHECK_TYPE\":\"4\",\"TOTAL_WIDTH\":0,\"LINK_NO\":\"\",\"OVER_HEIGHT\":0}]}\n";
        BsUploadDataReq bsUploadDataReq = JSONUtil.toBean(json, BsUploadDataReq.class);
        System.out.println(bsUploadDataReq);
    }
}